package cn.com.connext.scrm.service.dto;

/**
 * 验证码发送回复DTO
 */
public class SmsDTO {
    //验证码
    private String code;

    //发送时间(毫秒数)
    private long sendMillisecend;

    //发送结果
    private  String result;

    //异常消息
    private  String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public long getSendMillisecend() {
        return sendMillisecend;
    }

    public void setSendMillisecend(long sendMillisecend) {
        this.sendMillisecend = sendMillisecend;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"code\":\"")
            .append(code).append('\"');
        sb.append(",\"sendMillisecend\":")
            .append(sendMillisecend);
        sb.append(",\"result\":\"")
            .append(result).append('\"');
        sb.append(",\"message\":\"")
            .append(message).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
